<script>
	export default {
		globalData: {
			baseUrl : "https://www.sdwxedu.com",
		},
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			console.log('App Show')
			uni.request({
				url: 'https://www.sdwxedu.com/api/index/getversion',
				method: 'GET',
				header: { 'Content-Type': 'application/json' },
				success: (res) => {
					  console.log(res.data.data)
					  var infomation  =  res.data.data
					  uni.setStorageSync('version',infomation)
				},
				fail: (err) => {
					console.error('请求失败:', err);
				}
			})
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
</style>
